package com.pine.dbant.common.plugin.meta;

import com.pine.dbant.common.model.DatabaseTermTransformParams;
import com.pine.sunflower.core.Typer;

/**
 * @author xiaoyuan
 * @create 2022/12/26
 **/
public interface QueryMetadataFunction<C extends MetadataAnalysisConfig,R> extends Typer {

    R query(C metadataAnalysisConfig,QueryMetadataParam queryMetadataParam);


    default DatabaseTermTransformParams transformQueryCatalogAndSchema(String catalog, String schema){
        return DatabaseTermTransformParams.builder().catalog(catalog).schema(schema).build();
    }

}
